Closes: #469
Approved by: cgwalters
[ -e /etc/mtab ] || skip "no /etc/mtab"
}
+has_gpgme () {
+ ${CMD_PREFIX} ostree --version | grep -q -e '\+gpgme'
+}
+
libtest_cleanup_gpg () {
gpg-connect-agent --homedir ${test_tmpdir}/gpghome killagent /bye || true
}
set -euo pipefail
-if ! ostree --version | grep -q -e '\+gpgme'; then
+. $(dirname $0)/libtest.sh
+
+if ! has_gpgme; then
echo "1..0 #SKIP no gpg support compiled in"
exit 0
fi
-. $(dirname $0)/libtest.sh
-
echo "1..1"
keyid="472CDAFA"
set -euo pipefail
-if ! ostree --version | grep -q -e '\+gpgme'; then
+. $(dirname $0)/libtest.sh
+
+if ! has_gpgme; then
echo "1..0 #SKIP no gpgme support compiled in"
exit 0
fi
-. $(dirname $0)/libtest.sh
-
echo "1..1"
setup_test_repository "archive-z2"
done
echo "ok pull mirror summary"
-if ! ${CMD_PREFIX} ostree --version | grep -q -e '\+gpgme'; then
+if ! has_gpgme; then
exit 0;
fi
${CMD_PREFIX} ostree --repo=repo fsck
echo "ok pull mirror summary"
-if ! ${CMD_PREFIX} ostree --version | grep -q -e '\+gpgme'; then
+if ! has_gpgme; then
exit 0;
fi